home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / Types.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  61 lines

  1. /*
  2.  * @(#)Types.java    1.5 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.sql;
  16.  
  17. /**
  18.  * <P>This class defines constants that are used to identify SQL types.
  19.  * The actual type constant values are equivalent to those in XOPEN.
  20.  *
  21.  */
  22. public class Types {
  23.  
  24.     public final static int BIT         =  -7;
  25.     public final static int TINYINT     =  -6;
  26.     public final static int SMALLINT    =   5;
  27.     public final static int INTEGER     =   4;
  28.     public final static int BIGINT         =  -5;
  29.  
  30.     public final static int FLOAT         =   6;
  31.     public final static int REAL         =   7;
  32.     public final static int DOUBLE         =   8;
  33.  
  34.     public final static int NUMERIC     =   2;
  35.     public final static int DECIMAL        =   3;
  36.  
  37.     public final static int CHAR        =   1;
  38.     public final static int VARCHAR     =  12;
  39.     public final static int LONGVARCHAR     =  -1;
  40.  
  41.     public final static int DATE         =  91;
  42.     public final static int TIME         =  92;
  43.     public final static int TIMESTAMP     =  93;
  44.  
  45.     public final static int BINARY        =  -2;
  46.     public final static int VARBINARY     =  -3;
  47.     public final static int LONGVARBINARY     =  -4;
  48.  
  49.     public final static int NULL        =   0;
  50.  
  51.     /**
  52.      * OTHER indicates that the SQL type is database specific and
  53.      * gets mapped to a Java object which can be accessed via
  54.      * getObject and setObject.
  55.      */
  56.     public final static int OTHER        = 1111;
  57.  
  58.     // Prevent instantiation
  59.     private Types() {}
  60. }
  61.